<?php

class Model_DbTable_SalesTrends extends Zend_Db_Table
{

    protected $_name = 'sales_trends';

    protected $_rowClass = 'Model_SalesTrends';

	public function getTrendsData($num=8) {
		$num = (int) $num;
    	$all = $this->fetchAll("", "order DESC", $num);
    	
    	return $all;
    }
}

